<?= View::factory('pieces/left_body', array('catalog' => $catalog, 'parent_id' => NULL, 'type' => 0)) ?>
<div class="right_body">
	<div class="right_body_cont">
		<h1><?= $title ?></h1>
		<?= empty($items_count) ? '<p>Этот раздел пока пуст.</p>' : '' ?>
		<? foreach ($articles as $key => $item): ?>
			<div style="margin-bottom: 30px;">
				<? if ($item->type == 0): ?>
					<div class="news">
						<div class="news_image_cont"><a href="<?= URL::site('news/'.$item->id) ?>"><img src="<?= URL::site('static/uploads/articles/normal/'.$item->image) ?>" alt="" /></a></div>
						<span class="data"><? $date = explode(' ', $item->creation_date); echo $date[0] ?></span><br />
						<a href="<?= URL::site('news/'.$item->id) ?>" class="news_link underline"><?= $item->title ?></a>
						<p><?= Text::limit_words(strip_tags($item->text), 70) ?></p>
					</div>
				<? elseif ($item->type == 1): ?>
					<a href="<?= URL::site('services/'.$item->id) ?>" class="link_18 underline"><?= $item->title ?></a>
					<p><?= Text::limit_words(strip_tags($item->text), 70) ?></p>
				<? elseif ($item->type == 2): ?>
					<a href="<?= URL::site('projects/'.$item->id) ?>" class="link_18 underline"><?= $item->title ?></a>
					<p><?= Text::limit_words(strip_tags($item->text), 70) ?></p>
				<? elseif ($item->type == 3): ?>
					<a href="<?= URL::site('partners/'.$item->id) ?>" class="link_18 underline"><?= $item->title ?></a>
					<p><?= Text::limit_words(strip_tags($item->text), 70) ?></p>
				<? endif ?>
			</div>
		<? endforeach ?>
		<?= $pagination ?>
	</div>
</div>